package pickbook.model;

import java.util.List;

import javax.annotation.Resource;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class univDAOImpl implements univDAO{
	@Resource(name="sqlSessionTemplate")
	private SqlSessionTemplate sqlSessionTemplate;

	/**
	 * method : getUnivListByLocation
	 * comment : 지역 정보 내에 있는 대학 목록 반환
	 * @param location
	 * @return
	 * 
	 * @author 김병각
	 * @date 2014-07-02
	 */
	@Override
	public List getUnivListByLocation(String location) {
		return sqlSessionTemplate.selectList("getUnivListByLocation",location);
	}

}
